Avatar billede mikker1234 Nybegynder
21. juni 2002 - 09:05 Der er 20 kommentarer og
1 løsning

New window without toolbar

Hi everybody,

Can anybody help me out on this:

I've got a projector for a digital businesscard, and I need to open a
browser from when the customer clicks a button, This orks fine with
Get URL... But what I want is opening this rowserwindow without
toolbar, location and not sizeable....

Can someone help me out??

Thnx.........
Avatar billede twm Nybegynder
21. juni 2002 - 09:13 #1
Here is what i normally do:
<SCRIPT LANGUAGE=javascript>
<!--
function showframe(strhtml)
{
    newWindow = window.open(strhtml,'noname','status=no,width=600,height=400')
    newWindow.focus()
}
//-->
</SCRIPT>

Where strhtml is the url to be opened in the window!

Regards...
Torben
Avatar billede -master-d- Nybegynder
21. juni 2002 - 09:13 #2
<a href="#" onclick="window.open('http://www.eksperten.dk, 'win', 'height=400,width=400,location=no,status=no, resizable=no, toolbar=no,menubar=no'); ">link</a>

Tror jeg nok er det som virker.
Avatar billede nicidem Nybegynder
21. juni 2002 - 09:14 #3
In IE use f11!
Avatar billede nicidem Nybegynder
21. juni 2002 - 09:14 #4
...
Avatar billede -master-d- Nybegynder
21. juni 2002 - 09:22 #5
if you use f11, then you'll only get the attribute called fullscreen.
all you need is some of those attributes:

location  - the url
menubar    - the dropdowns
resizable  - if yes ,it's possible to resize the window.
scrollbars - Scrollbars
status    - statusbar
toolbar    - the toolbar
Avatar billede mikker1234 Nybegynder
21. juni 2002 - 09:35 #6
THNX all of you... but i don't know where to put the script----! PLZ help me... i'm realy in trouble here...!
Avatar billede twm Nybegynder
21. juni 2002 - 09:44 #7
ex: you want open a window on a link:
<SCRIPT LANGUAGE=javascript>
<!--
function showframe(strhtml)
{
    newWindow = window.open(strhtml,'noname','status=no,width=600,height=400')
    newWindow.focus()
}
//-->
</SCRIPT>

java script:showframe('http://www.eksperten.dk');">Tryk her</a>
Avatar billede twm Nybegynder
21. juni 2002 - 09:45 #8
<a href="java script:showframe('http://www.eksperten.dk');">Push here</a>
A little to fast ;)
Avatar billede lequet Nybegynder
21. juni 2002 - 09:52 #9
Get Url is ActionScript am i right? Then we're talking flash :) So do you ask where to place the JavaScript in your flash/actionscript? If so i think this :

java script:newWin = window.open('page.htm','noname','width=600,height=400')

Should be placed where you currently have the url to be opened in the window. Hope I didn't miss the question :)
Avatar billede lequet Nybegynder
21. juni 2002 - 09:55 #10
If it doesn't work out and you don't get an answer here, I recommend that you close this question an create a new in the Flash category, I believe there is a better chance there for you to get an answer.
Avatar billede mikker1234 Nybegynder
21. juni 2002 - 10:00 #11
No, i don't think you understand me correct---! I have a web-site.. On the web-site there is an image... When i click it, i want a new window to open, without toolbars and URL... Okay...?
Avatar billede lequet Nybegynder
21. juni 2002 - 10:07 #12
<SCRIPT LANGUAGE=javascript>
<!--
function showframe(strhtml)
{
    newWindow = window.open(strhtml,'noname','status=no,width=600,height=400')
    newWindow.focus()
}
//-->
</SCRIPT>

Place that in between <head> and </head> somewhere

Than place this where your image goes :

<a href="java script:showframe('http://www.eksperten.dk');"><img src="picture"></a>

It should work, just replace the urls with your own :)
Avatar billede twm Nybegynder
21. juni 2002 - 10:09 #13
<SCRIPT LANGUAGE=javascript>
<!--
function showframe(strhtml)
{
    newWindow = window.open(strhtml,'noname','status=no,width=600,height=400')
    newWindow.focus()
}
//-->
</SCRIPT>

<img src=yourpic.png onclick="showframe('http://www.eksperten.dk');">
Avatar billede keysersoze Ekspert
21. juni 2002 - 10:10 #14
if you look at this page;

http://activedeveloper.dk/artikler/default.asp?articleid=275

you can learn everything you need to make a window like that - on the same site you find this link - http://activedeveloper.dk/services/builders/windowbuilder.asp - where you can find a window builder which can do all the work for you.
Avatar billede mikker1234 Nybegynder
21. juni 2002 - 10:12 #15
THNX everybody... we have a winner....
Avatar billede twm Nybegynder
21. juni 2002 - 10:14 #16
And who is the winner?
Avatar billede mikker1234 Nybegynder
21. juni 2002 - 10:17 #17
lequet
.... Sorry... he was the only one who could explain to me what i should do..
Avatar billede lequet Nybegynder
21. juni 2002 - 10:26 #18
Thanx :)
Avatar billede lequet Nybegynder
21. juni 2002 - 10:33 #19
Oh by the way, I think 200 is a bit to much, maybe twm should have some of them too, it was his code after all :)
Avatar billede twm Nybegynder
21. juni 2002 - 12:44 #20
thanx
Avatar billede lequet Nybegynder
22. juni 2002 - 17:50 #21
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester