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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup confusion

Status
Not open for further replies.

WJProctor

Programmer
Jun 20, 2003
151
GB
I dont know if anyone can help me out, but id like to be able to click a word in a similar way to how a hyperlink works and it then popup and window, but not effect the current window. Is this possible or not. Currently im doing it like this:

<a href=&quot;target.html&quot; onMouseClick=&quot;formatpopup&quot;>format</a>

but this changes the main window too. Please help me out.

Regards

JP
 
WJProctor, so you want the popup to be in a new window??
Something like this may help:

Put this b/w <head></head>:
<script>
function newWindow(file, name, prefs) {
var nWin = window.open(file, name, prefs)
}
</script>


Put this where you want the links:
<a href=&quot;javascript:newWindow('target.html','window1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=500,height=350')&quot;>format</a>

The portion in blue sets the width and height of the new window. And if you look at the rest of the code, it strips the new window of all the basic properties so the user can't do anything but see the content of that window.
Is this similar to what you were asking??

I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage.
It's no big deal really...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top