Forum Moderators: open

Message Too Old, No Replies

<noscript> and javascript popups

Is it possible to provide an HTML alternative to javascript popups?

         

jetnovo

3:07 am on Mar 18, 2005 (gmt 0)

10+ Year Member



I'm generally unfamiliar with javascript, but have been using a snippet of script to create pop-up windows on my HTML website.

I've heard of the <noscript> tag and had a play but can't seem to use it correctly.

My goal is to use javascript to create 400px x 400px pop-upwindows, but, to have the same pages open in standard new windows IF javascript is disabled.

Something like this (the concept, not the exact coding)...


<script>
<a javascript href="thispage.html">Link</a>
</script>
<noscript>
<a href="thispage.html" target="_blank">Link</a>
</noscript>

I know I haven't used proper code above - I just want to show the sort of solution I'm after.

Does anyone know of a proper way of coding this?

dcrombie

7:47 am on Mar 18, 2005 (gmt 0)



I think this is what you want:

<A href="newpage.html" target="_blank" onClick="window.open('newpage.html', ...); return false;">open window</A>

;)