All Forums >> [Scripting] >> ASP >> create a custom window Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
is there a way of creating a custom popup window on a link mouseclick event?
example: link or button is clicked, custom sized popup opens with the source being specified. like a user clicks a 'show request method' link, up pops a window with the source being <.html> <%=request.servervariables("REQUEST_METHOD")%> </html>
heh, i dont know if that makes any sense, but if you can help it would be coo.. thanks.
Posts: 95
Score: 0
Joined: 7/3/2001
From: USA
Status: offline
While I was reading your post...I clicked on the icon to "e-mail the poster"....when you mouseover the icon, before you click it...you can see that the link is a javascript link:
javascript:openWindow('pop_mail.asp?id=2285')
And when you click it, it opens up a new window...presumably, it opens the window to the page "pop_mail.asp?id=2285"
If thats what you are trying to do, then should look at the source code for the forum pages, and see what you can get out of there...or try some javascript reference sites like http://javascript.internet.com
hehe, ya i knew that wouldnt make sense, here lemme try to put it in simple logic for communication reasons cuz it jus sounds like babbling otherwise heh,
<body> Here is a link to the pop-up: <a href=javascript:openWindow('tester.asp?win=1')> Click Here </a> </body> <% End If %>
------------------------------------- This way, the contents of the pop-up get called from the link in the body...even though it is calling the same page, the variable identifies the link as the pop-up, so the page returns the 2nd set of info.