View Full Version : HTML (or XML) question
vampyrewolf
05-04-2009, 09:35 AM
Ok, on the off chance that someone's played with it... it's likely in one of my 4-5 books but not fresh in my mind.
Is there a code block in either html or xml to open a new window or tab, without using javascript, in which you can open a URL automatically? Essentially making my own popups.
I'd like to set up a home page that opens up my forums, webcomics and email accounts when opened up. I realize that firefox and explorer allow you to set up multiple tabs for homepages but I want to be able to pull the page from another source (usb, sd card, desktop, file server) and fire it open on a computer without setting up anything.
I'm coming across ways to do it with javascript but not raw html or xml.
vampyrewolf
05-04-2009, 09:59 AM
ok, found one online that "works"
alrighty... html doesn't want to show up in here... that index.txt file, resaved as html, opens a blank page with a popup to google.ca
Is there a cleaner way of doing it than how I have that set out?
and can I set it up to open tabs instead of new windows?
The Deacon
05-04-2009, 11:38 AM
Patrick, that's still Javascript, only done inline within the HTML page rather than as a linked script file. Don't think there's any way to do a popup without using Javascript. What exactly are you trying to accomplish?
vampyrewolf
05-04-2009, 12:13 PM
this one gives me a link, which when clicked opens in a new tab... closer to the plan...
plan is that I can sit down at any computer, type in the address to my page and have it open up 7-8 tabs with my usual sites loaded up automatically.
Saves me sitting at someone elses computer typing in every page and wasting time. I'm not concerned about making it firefox only and losing visitors as this page won't be linked to externally once it's working.
First shot gave me new windows, but it was loaded automatically... this 2nd one opens new tabs but has to be manually clicked.
Josh K
05-04-2009, 06:52 PM
I believe you can set the target in the anchor tag. Something like
<a href="http://www.google.com" target="_blank">Google!</a>
<a href="http://www.google.com" target="_blank">Google!</a>
In order to get them all to open automatically when you load a page, I'd recommend a healthy dose of javascript or some browser specific app.
tkdman41
05-04-2009, 07:04 PM
You may just be able to do what your trying to through your browser. I know in firefox you can have multiple home pages and am pretty sure most other tabed browesers will let you do the same. Set your homepage to the list of URL's you want seperated by a | (shift backslash).
edit:
Never mind that. Missed the part of you sitting at someone else's pc.
Powered by vBulletin® Version 4.1.10 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.