Jump to content


Photo

target="_top" , how?


  • Please log in to reply
3 replies to this topic

#1 wtrbrs

wtrbrs

    GMC Member

  • GMC Member
  • 37 posts

Posted 14 June 2012 - 08:30 AM

Hi,

I need a button in html 5 to go to an url like this"www.anurl.nl target ="_top"

(or target ="_parent")

I have tried the following code:

YoYo_OpenURL('http://anurll.nl target="_top"' );

but this generates an error in the browser. (it also puts the target="_top" litteraly in the url)

Any suggestions?

Thanks,

Wouter
  • 0

#2 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 17025 posts
  • Version:GM:Studio

Posted 14 June 2012 - 09:21 AM

You need to use the extended function, not the standard one. In Studio it is url_open_ext and in GM:Html5 it is YoYo_OpenURL_ext.
  • 0

#3 wtrbrs

wtrbrs

    GMC Member

  • GMC Member
  • 37 posts

Posted 14 June 2012 - 05:10 PM

You need to use the extended function, not the standard one. In Studio it is url_open_ext and in GM:Html5 it is YoYo_OpenURL_ext.


thanks. Where can i find the documentation for these functions? e.g. what is the correct syntax?
  • 0

#4 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 17025 posts
  • Version:GM:Studio

Posted 15 June 2012 - 07:48 AM

If you are using GM:Html5, there is no documentation I'm afraid as these functions were only included as a test. In GM:Studio, however, they are in the manual. For your particular question the correct syntax is :

YoYo_OpenURL_ext( "http://anurll.nl", "_parent" );

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users