|
|
|
|
Functions
Events
Variables
Libraries
|
|
Syntax
Parameters
| STRING | URL | URL to open in a new window. The http prefix can be omitted. |
Return value
No value is returned.
Description
Opens an URL (http or https) in a new window with the default user's web browser. The default web browser can be Internet Explorer, Firefox, Opera, or any other depending on the windows settings.
As the web browser object used by MioEngine is the same one than Microsoft Internet Explorer, when you open an URL with the standard JavaScript and HTML tools (window.open or TARGET for example), Microsoft Internet Explorer is used instead of the default user's web browser.
Opening a web page from JavaScript
mio_openURL("http://www.mioplanet.com")
|
Opening a web page from an URL
<A href="mio:openURL=http://www.mioplanet.com">Mioplanet in a new window</A>
|
Default web browser with a form (POST or GET)
If you need to do a POST or GET using a form and want the default web browser to be used, you must create a web page on your server that retreive the arguments of the URL to build and submit a form.
1. Create a web page on your server containing a script in charge of converting the URL arguments into a FORM.
Your script (PHP for example) will:
- Read the values of the arguments
- Create the FORM in HTML
- Set the values of the fields with the value retrieved in the URL
- Submit the form.
2. Call this page using mio_openURL. Build the URL with the values you want to post as arguments.
Example: http://www...com?keyword=myKeyword&language=en
|
JavaScript Sample Code
mio_openURL("http://www.mioplanet.com")
// also supported:
mio_openURL("www.mioplanet.com") |
|
|
|