Editor
Download
Open
Auto Run
<!DOCTYPE html> <html lang="en"> <head> <title>JavaScript str.search() function</title> </head> <body> <script type="text/javascript"> var str="Visit Wikipedia.org"; document.write(str.search("Wikipedia.org")); </script> </body> </html>
Preview