Janys (or anybody at Coffee Cup who can help):
Five and a half years later, I'm looking for exactly the same thing: I want a link that will open an HTML page in a small, fixed size window. I'd like that window to be a dead-end, i.e., no way out except to return to the parent page. If that means a pop-up, that's OK with me, but I don't know how to do that either.
I copied and pasted the code in Janys' original response,
http://www.coffeecup.com/forums/publica … er-window/
changing only the URL in the <a tag, and can't seem to get it to work. IE insists that it "cannot display the webpage". Incidentally, the href= string is shown in IE's address window when that message is displayed. I tried this with the "nojavascript..." as shown in the original example and with "javascript:" as shown in a later example. Both got me the same (bad) result.
Link that will open HTML page, fixed...
Try this...
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="nojavascript...newPopup('http://www.yourlink.com');">Open a popup window</a>
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="nojavascript...newPopup('http://www.yourlink.com');">Open a popup window</a>
"An Apple doth not fall far from its tree, yet an orange does."
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
Open the txt file below. The forum is messing with the code. Take the code in the txt file and try this.
Just looked and Janyes code has the same error.

"An Apple doth not fall far from its tree, yet an orange does."
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.