Discussions
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 = '