|
| Is there something to add to the html code for opening a link in a new window that would assure that it would be a small window? I have several links on one of my webpages that I would prefer to have them open in a small new window. But every time I have tried, it opens into a large window.
Thanks, MaryAnn |
Follow-Up Postings:
|
| You need to use j a v a s c r i p t to size the new window. |
|
| I tried to post a code snipet, but as usual Spike's parser/reformatter sent me to disneyland. So click on the link below and look over the tutorial. If you need further help, send me an email. I don't want to do hit and miss on what Spike will or will not allow to be posted. (I know it is a security issue with him, but the parser could be better). |
Here is a link that might be useful: Tutorial for open function in window class
|
- Posted by JamesS (penroses@tampabay.rr.com) on Sat, Aug 3, 02 at 6:05
| All you have to do to open a link in a new window is add this code . I am putting the full code in and using quotes so the code will show. Change ( and ) to < and >. (a href="http://www.thewebpage.com" target="blank")The Webpage(/a) JamesS |
|
| Thanks for your responses. Dan, I will check out the link you listed, haven't had time yet this morning. James, I tried the code you listed, which has the word blank where I normally use _window. I tried your code and it still opened up a full size window. But maybe I did something wrong. I'll try again. This forum has slowed down so much in the past few months. I'm glad that some of you are still around to help people like me! |
|
- Posted by JamesS (penroses@tampabay.rr.com) on Sat, Aug 3, 02 at 21:23
| I did not read your message all the way thru. Here is a webpage with a java script open window code. http://www.web-source.net/java-script_popup_window2.htm" To show the address i had to put a dashmark between the "a" and the "s" that you will have to take out. When you go to the page you can see in the code that you can adjust the window size to what you want. JamesS |
|
- Posted by lazygardens (My Page) on Fri, Jan 10, 03 at 8:33
| It only works if the user's browser allows j*avascript to open and resize windows. |
Please Note: Only registered members are able to post messages to this forum. If you are a member, please log in. If you aren't yet a member, join now!
Return to the Web Authoring Forum
Instructions
- You must be a registered member and logged in to post messages on our forums.
- Posting is a two-step process. Once you have composed your message, you will be taken to the preview page. You will then have a chance to review the contents and make changes.
- After posting your message, you may need to refresh the forum page in order to see it.
- It is illegal to post copyrighted material without the owner's consent.
- HTML codes are allowed in the message field only.
- No advertising is allowed in any of the forums.
- If you would like to practice posting or uploading photos, please visit our Test forum.
- If you need assistance, please Contact Us and we will be happy to help.