SitePoint Enthusiast
On my site, I have a search facility, which boots up in a new window, is there anyway to self.close() that window when you click the "go" button, because the "go" button boots another window.
I have searched many sites for a script like this with no luck, could someone point me in the right direction, as I posted a topic similar to this a month or so ago, with no real help on what to do. Thanks, a GOOD explaination of what to do would be much appreciated
Thanks very much, Hell.
I'm no JavaScript expert but I think it's possible to combine the close.window variable with the open.window variable. Not sure though
Christophe
Ask a JS pro.. Don't know one though..
------------------
http://freesources.net - the ultimate webmaster resources site
Don't know personally, but I'd be VERY surprised to hear that this can't be done...
DynaMike (I think) knows JavaScript pretty well...any thoughts, Mike?
------------------
Chris Bowyer - Programmer in Training
MyCoding.com: Join our mailing list for launch notification!
"I'm not an insomniac, I'm a web designer."
Your Lord and Master, Foamy
Put this in your code for the button.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code /font><HR><pre>
onClick="javascript :window.close();submit=true;"
[/code]
------------------
Wayne Luke - Sitepoint Forums Administrator
Digital Magician Studios - Making Magic with Web Applications
wluke@digitalmagician.com
SitePoint Enthusiast
How then could the
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code /font><HR><pre>
onClick="javascript :window.close();submit=true";
[/code]
be incorperated around a search applet, so that when you were to click the applet "launch" button, the window would close?
here is the applet code I am using:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code /font><HR><pre>
<applet name="Search" archive="search/search.jar" code="SearchApplet4ech.class" width="100" height="40">
<param name="TIMED" value="true">
<param name="RESOURCE.FILE" value="search/out.txt">
<param name="TARGET" value="_blank">
[/code]
Thanks, Hell.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks