I know this is possible, but I don’t know how to do it.
There is a section of my web site that shows a step by step process. In the newer version, I want to open this up in a new window, with no standard buttons, address bar etc, as all the controls will be in the window itself.
I’ve only dabbled in basic HTML and some Java so I’m not sure how this is handled within a window. Is that used between <script> tags or as part of an <a href= …>
tag set?
For opening a separate picture in a new window on my website I am currently using:
“<a href=”?" onclick=“MM_openBrWindow(‘rabid.html’,‘Rabid’,‘menubar=no,scrollbars=no,resizable=no,width=450,height=540’)”><img src=“rabidsmall.jpg” alt=“Rabid” border=“0” width=“100” height=“130”></a>" which is old school code.
Does this work in the same way?
The site is Norton Ceramics if you need to look at the current source code.
Well I tried your ideas, but nothing worked just like I required it, so after a bit of googling & some trial and error, I got the following to do the job perfectly:
It gives you all the options you need to define & resize a window and the best bit of all, it doesn’t make the source page revert to the top of the page, which was the bit that was bugging me. The window that appears can have it’s own close button using <a href=“javascript:parent.close()”> and either text or a button of your choice.
The result works lovely. Go to
Norton Ceramics and click on the Resin Model link to see the result. This is still the old site, which I am updating and should be up and running in its new form soon.
As I said the only issue I have with this is that after the window has opened, the page the link came from goes back to the top, so if you click on a link in a long page, you have to scroll down to where you were each time and this was really bugging me, hence the update to the different version.
To see the result of the new version, click on Norton Ceramics and then click on the “Process” link on the side bar or top menu bar. You will see it opens a window which is sized exactly how I want it and has all the links built into it, so that when you click on a link it brings up the new page in the same window.
Thanks. I have since read up on the syntax. IE figures it out without the definition if it has seen it before. Firefox does not. Freaked me out for awhile…
The newer version works OK in Firefox, which is another reason why I changed over to it. I wanted the site to be user friendly in a variety of browsers and this was an issue which I had to resolve for Firefox and Opera as well. It is simpler and does not require the extra script line to be present in every page it’s need in, thus saving coding time (once I’d figured it out )
Glad you’ve got it sorted though.