PDA

View Full Version : Calling two funtions from one event


swatipradhan
Nov 27, 2008, 04:59 AM
I have three html pages.

One.htm

<html>
<head>
</head>
<body>
<a href="#" onclick="window.open('two.htm','kid','resizable=no,scrollba rs=no,width=250,height=148,toolbar=no');">click</a>
</body>
</html>

two.htm

<html>
<head>
</head>
<body>
<a href="#" onclick="window.opener.location.href='three.htm';">change parent</a>
</body>
</html>

and

three.htm

<html>
<head>
</head>
<body>
new page
</body>
</html>

I want to close two.htm when three.htm is opening on the same window as one.htm.

Thanks
Swati