Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Any javascript experts out there - dynamically created an iframe URL
I'm new to both Netsuite and javascript. I want to put a Netsuite form on our own website to mask the long netsuite URL from our customers. I'm told the way to do this is to build and iframe into a webpage on our site. However, I need the src URL in the iframe to be dynamic since I want to pass values to the form via the URL.
I've built the following HTML/Javascript:
<html>
<head>
<script language='javascript'>
var str = (location.href);
var start = str.search(/[?]/);
var result = str.substring(start + 1);
var myurl = '
0