Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pass a script tag into popup window

Status
Not open for further replies.

bench

Technical User
Jan 5, 2001
17
0
0
US
Hi

I am trying to create a popup window that will have some images. I want this window to have some javascript functionality such as rollover etc. My problem is, how can I pass the script tag(<script></script>) into this window to allow me to accomplish my task? I tried passing the tag but I got a error massage. Can some please help!!! thanks.
 
How are you creating your popups? You can use popup code that calls an actual html file. In that html file you can have whatever code you want. Mike Barone
FREE CGI/Perl Scripts & JavaScript Generators
Ace PopUp Generator Software - Totally FREE
 
If you want to pass script tags - and document.write them Either split them up in strings, or use escape sequences fr the slash.

&quot;<script>alert(&quot;Hello&quot;);<\/script>&quot;

This is if you don't want to just insert the page - like Mike said.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top